package com.datuo.dtf.mapper;

import com.datuo.dtf.common.MyMapper;
import com.datuo.dtf.model.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MenuMapper extends MyMapper<Menu> {

    /**
     * 根据用户ID查询菜单权限
     * @param userId
     * @return
     */
    List<Menu> findByUserId(@Param(value="userId")Long userId);
}